package com.fr.schedule.web;

import com.fr.json.JSONObject;
import com.fr.schedule.entry.SAPSynManager;
import com.fr.web.core.ActionNoSessionCMD;
import com.fr.web.utils.WebUtils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ScheduleAouSAPSynTaskAction extends ActionNoSessionCMD {
	
	public void actionCMD(HttpServletRequest req, HttpServletResponse res) throws Exception {
		String taskString = WebUtils.getHTTPRequestParameter(req, "taskJason");
		JSONObject taskJSON = new JSONObject(taskString);
		
		SAPSynManager.addOrUpdateTask(taskJSON);
	}

	public String getCMD() {
		return "se_aou_st_task";
	}
}